package com.htt.bms.testcontroller;

import com.htt.bms.domain.sys.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 侯婷婷
 * @version 1.0
 * @description hello接口测试
 */
@Api(tags = "实体类/接口测试")
@RestController
public class HelloController {


    @GetMapping("/hello")
    @ApiOperation("测试接口")
    public String hello(){
        return "hello world!";
    }

    //当我们的接口中，返回值中存在实体类，它才会被扫描到Swagger中
    @GetMapping("/sysuser")
    @ApiOperation("测试实体类SysUser")
    public SysUser getSysUser(){
        return new SysUser();
    }

    @GetMapping("/sysrole")
    @ApiOperation("测试实体类SysRole")
    public SysRole getSysRole(){
        return new SysRole();
    }

    @GetMapping("/getsysuserorg")
    @ApiOperation("测试实体类SysUserOrg")
    public SysUserOrg getSysUserOrg(){
        return new SysUserOrg();
    }

    @GetMapping("/getsysuserrole")
    @ApiModelProperty("测试实体类SysUserRole")
    public SysUserRole getSysUserRole(){
        return new SysUserRole();
    }

    @GetMapping("/getsysorgrole")
    @ApiOperation("测试实体类SysOrgRole")
    public SysOrgRole getSysOrgRole(){
        return new SysOrgRole();
    }

    @GetMapping("/getsysorg")
    @ApiOperation("测试实体类SysOrg")
    public SysOrg getSysOrg(){
        return new SysOrg();
    }

    @GetMapping("/getsysmenu")
    @ApiOperation("测试实体类SysMenu")
    public SysMenu getSysMenu(){
        return new SysMenu();
    }

    @GetMapping("/getsysMenuRole")
    @ApiOperation("测试实体类SysMenuRole")
    public SysMenuRole getSysMenuRole(){
        return new SysMenuRole();
    }
}
